package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.Admin;

import java.sql.SQLException;
import java.util.List;

public interface AdminDao {
    int login(Admin admin);

    List<Admin> allAdmins() throws SQLException;

    List<Admin> getSearchAdmins(Admin params) throws SQLException;

    void deleteAdmins(String id) throws SQLException;

    Admin getAdminInfo(String id);

    void updateAdminss(Admin admin);

    void addAdminss(Admin admin);
}
